package 面向对象中级.继承.访问控制;

public class FishTest {

    public static void main(String[] args) {
        Fish fish=new Fish();
        //System.out.println(fish.private1);//不能
        System.out.println(fish.defalut1);//能
        System.out.println(fish.protected1);//能
        System.out.println(fish.public1);//能
    }
}
